﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PizzaWic.user
{
    public partial class productItemUser : System.Web.UI.UserControl
    {
        public String[] data;
        static readonly private String imagePath = "../images/";
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public void setData(String[] data)
        {
            this.data = data;
            this.name.Text = data[1];
            this.price.Text = data[3];
            this.image.ImageUrl = imagePath + data[4];
            this.ingredient.Text = data[5];
        }
    }
}